<?php
/**
 * Created by Command.
 * User: Vito
 */

declare (strict_types = 1);

namespace app\logic;

use app\model\WaterEleRecord;

class WaterEleRecordLogic extends BaseLogic
{

    /**
     * 设置模型
     * @return string
     */
    protected function getModelName(): string
    {
        return WaterEleRecord::class;
    }
    /**
     * @Description: 获取上次水电读数
     * @author: xiayu <cb1071403016@126.com>
     * @param [type] $params
     * @Date: 2022-11-23 17:34:13
     * @version: 1.0.0
     * @return [type]
     */
    public function getWaterEle($params){
        $where['room_id'] = $params['room_id'];

        $res = WaterEleRecord::getWaterEle($where);
        return $res;
    }
}
